#pragma once
#include "mut.h"

#define MUTHWND DWORD

enum MUTCTRL_TYPE{
	MUTCTRL_DIALOG=0,
	MUTCTRL_STATIC,
	MUTCTRL_BUTTON,
	MUTCTRL_CHECKBOX,
	MUTCTRL_RADIOBUTTON,
	MUTCTRL_LISTBOX,
	MUTCTRL_COMBOBOX,
	MUTCTRL_SLIDER,
	MUTCTRL_EDITBOX
};

typedef INT (*MUTDLGPROC)(MUTHWND hDlg,UINT uMsg,WPARAM wParam,LPARAM lParam);
MUTHWND MUTGUICreateDialogModeless(int x,int y,int width,int height,bool bCaption,MUTDLGPROC DlgProc);
MUTHWND MUTGUICreateControl(MUTHWND hParent, MUTCTRL_TYPE type, DWORD style, int x, int y, int width, int height, DWORD id, LPWSTR title=0, DWORD group=0);
int MUTGUISendMessage(MUTHWND hwnd,UINT Msg,WPARAM wParam,LPARAM lParam);
BOOL MUTGUISetWindowText(MUTHWND hwnd,LPWSTR text);
HRESULT MUTGUIOnCreateDevice(LPDIRECT3DDEVICE9 pDevice);
HRESULT MUTGUIOnResetDevice(LPDIRECT3DDEVICE9 pDevice);
HRESULT MUTGUIOnReleaseDevice();
HRESULT MUTGUIOnRender(LPDIRECT3DDEVICE9 pDevice);